//
//  CaiPiaoModel.m
//  EasyToo
//
//  Created by linshengqin on 13-9-15.
//{"CTSRespHeader":{"Userid":"2.0.20120808","ResultCode":"CTS0000","Comment":"","TxAccount":"36200169","TxAmt":"0","Contacter":"","TxPage":"1","Channel":"05","TxRecordNum":"20","TranCode":"016004","OrigSender":"10000240,21218CCA77804D2BA1922C33E0151105","MesgRefID":"725DD39490F248C8A04A1938ACFBAD41"},"CTSRespBody":{"Entity":[{"issue":"2013253","lType":"2","startTime":"2013-09-16 21:30:00","endTime":"2013-09-17 19:40:00","drawNumber":"","status":"0","levelCount":"","salesMoney":"0","prizePoolMoney":"0","TestNo":""}],"msg":[],"request":"three"}}
//
//

#import "CaiPiaoModel.h"

@implementation CaiPiaoModel
static CaiPiaoModel* caipiao_model = nil;
+(CaiPiaoModel*) sharedata
{
    if(caipiao_model == nil)
    {
        caipiao_model = [[CaiPiaoModel alloc] init];
    }
    return caipiao_model;
}

- (id)init
{
    self = [super init];
    if (self) {
        _stakeList = [[NSMutableArray alloc] init];
        _listNum    = [[NSMutableArray alloc] init];
        _listPrice  = [[NSMutableArray alloc] init];
        _issue = [[NSString alloc]init];
        _startTime = [[NSString alloc]init];
        _endTime    = [[NSString alloc]init];
        _identify = [[NSString alloc] init];
        _times = 1;
    }
    return self;
}
-(void)resetPara
{
    if(_stakeList)
        [_stakeList removeAllObjects];
    if(_listNum)
        [_listNum removeAllObjects];
    if(_listPrice)
        [_listPrice removeAllObjects];
    _totalCount = 0;
    _totalPrice = 0;
}
- (void)dealloc
{
    NSLog(@"&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&");
    [_stakeList release],_stakeList = nil;
    [_listNum release],_listNum = nil;
    [_listPrice release],_listPrice = nil;
    [self.identify release];
    self.issue = nil;
    self.startTime = nil;
    self.endTime = nil;

    [caipiao_model release];
    [super dealloc];
}
@end
